/*
 * To change this template, choose Tools | Templates
 * @author hoang.pt
 * @version $Id$
 */

/**
 *
 * @author hoang.pt
 */
public class MyThread extends Thread{
    /**
     * 
     */
    String name;

    /**
     * default constructor
     */
    public MyThread() {
        this(null);
    }

    /**
     * 
     * @param x
     */
    public MyThread(String x) {
        this.name = x;
    }


    @Override
    public void run() {
        //
        System.out.println("This is " +name+ " thread.");
    }

    
}
